package com.atguigu.dao;

import com.atguigu.pojo.Book;

import java.util.List;

/**
 * @Author luoyin
 * @Date 17:17 2022/7/18
 * @Description 描述
 **/
public interface BookDao {
    List<Book> selectAll()throws Exception;

    Long selectTotalSize()throws Exception;

    List<Book> selectLimit(int begin, int pageSize)throws Exception;

    int add(Book book)throws Exception;

    int update(Book book)throws Exception;

    Book selectById(int bookId)throws Exception;

    int delete(int bookId)throws Exception;

    Long selectListTotalSize(Double floorPrice, Double peakPrice)throws Exception;

    List<Book> selectList(Double floorPrice, Double peakPrice, int begin, int pageSize)throws Exception;

    void updateBatch(Object[][] bookParamArr) throws Exception;
}
